home *** CD-ROM | disk | FTP | other *** search
/ Logiciels PC 7 / logiciel pc 7.iso / Linux / KDE_1.1pr2_Rpm / kdesupport-1.1pre2-1rh5x.i386.rpm / kdesupport-1.1pre2.1rh5x.cpio.gz / kdesupport-1.1pre2.1rh5x.cpio / opt / kde / bin / kdesetup < prev    next >
Text File  |  1999-01-27  |  1KB  |  44 lines

  1. #!/bin/bash
  2. # script to initialize a user's kde configuration, if not present.
  3. # this script is run by ~/.Xclients before starting KDE.
  4. # it is *not* intended to be run on its own.
  5.  
  6. # default location of default initial user KDE configuration
  7. SKELDIR="$KDEDIR/etc/skel"
  8.  
  9. # alternate location of default initial user KDE configuration
  10. # (if the KDE_SKELDIR environment variable is set)
  11. if [ "$KDE_SKELDIR" = "" ] ; then
  12.     KDE_SKELDIR=$SKELDIR
  13. fi
  14.  
  15. # create the default ~/Desktop directory, if it doesn't exist
  16. if ! [ -d ~/.kde ] ; then
  17.     if [ -d $KDE_SKELDIR/Desktop ] ; then
  18.     cp -a $KDE_SKELDIR/Desktop ~/
  19.     else
  20.     cp -a $SKELDIR/Desktop ~/
  21.     fi
  22. fi
  23.  
  24. # create the default ~/.kde directory, if it doesn't exist
  25. if ! [ -d ~/.kde ] ; then
  26.     if [ -d $KDE_SKELDIR/.kde ] ; then
  27.     cp -a $KDE_SKELDIR/.kde ~/
  28.     else
  29.     cp -a $SKELDIR/.kde ~/
  30.     fi
  31.     chmod -R og-x  ~/.kde/share/* 
  32.     chmod  og-r  ~/.kde/share/*
  33.     rm -f ~/.kde/share/apps/kfm/magic 
  34. fi
  35.  
  36. # create the default ~/.kderc configuration file, if it doesn't exist
  37. if ! [ -f ~/.kderc ] ; then
  38.     if [ -f $KDE_SKELDIR/.kderc ] ; then
  39.     cp -a $KDE_SKELDIR/.kderc ~/
  40.     else
  41.     cp -a $SKELDIR/.kderc ~/
  42.     fi
  43. fi
  44.